//
// Created by yk120 on 2024/3/4.
//

#include <nanofaiss/utils/utils.h>
#include <sys/time.h>

namespace faiss {

double getmillisecs() {
    struct timeval tv;
    gettimeofday(&tv, nullptr);
    return tv.tv_sec * 1e3 + tv.tv_usec * 1e-3;
}

}
